// index.js
import util from "../../utils/util";
Page({
  data: {
  },
  async onLoad(e){
    const cleaned = e?.cleaned??''
    if(cleaned){
      // 清除缓存
      wx.clearStorageSync();
    }else{
      util.checkJump();
    }
    
  },
  onShow() {
    // 录屏
    if (wx.setVisualEffectOnCapture) {
      wx.setVisualEffectOnCapture({
        visualEffect: 'hidden',
        success: (res) => {
          console.log('设置成功', res);
        },
        fail: (err) => {
          console.error('设置失败', err);
        }
      });
    }
    
  },
  onStar(){
    wx.navigateTo({
      url: '../login/login',
    })
  },
})